package cc.linker.steplink.crm.dao;

import cc.linker.steplink.crm.domain.LabelPo;
import cc.linker.steplink.crm.domain.TacticsPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface LabelNewDao {

    List<LabelPo> listLabel(Map<String, Object> labelMap);

    LabelPo getLabel(@Param("labelId") String labelId);

    int insert(LabelPo record);

    int ifLabelExist(LabelPo record);

    int updateByPrimaryKeySelective(LabelPo record);

    int deleteByPrimaryKey(@Param("labelId") String labelId);

    void deleteGoodsRel(@Param("labelId") String labelId);

    List<TacticsPo> tacticsList(Map<String, Object> tacticsMap);

    void deleteTacticsRel(@Param("labelId") String labelId);

    int insertTactics(TacticsPo tacticsPo);

    void insertTacticsRel(Map map);

    int updateTactics(TacticsPo tacticsPo);

    void deleteTacticsRelByTacticsId(@Param("tacticsId") Long tacticsId);

    int deleteTacticsId(@Param("tacticsId") Long tacticsId);

    void updateStatus(TacticsPo tacticsPo);

    TacticsPo getTactics(@Param("tacticsId") String tacticsId);

    int tacticsRelCount(@Param("labelId") String labelId);

    Map enrollList(@Param("enrollId") String enrollId);

    List<Map> attrList(Map enroll);

}
